package com.example.yoga.service;

import com.example.yoga.entity.Combo;
import com.example.yoga.mapper.ComboMapper;
import com.example.yoga.service.IComboService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author liwenkai
 * @since 2021-02-03
 */
@Service
public class ComboServiceImpl extends ServiceImpl<ComboMapper, Combo> implements IComboService {

    @Resource
    private ComboMapper comboMapper;


    @Override
    public int getTotalCombo() {
        int totalCombo = comboMapper.getTotalCombo();
        return totalCombo;
    }

    @Override
    public List<Map<String, Object>> getComboCount() {
        List<Map<String, Object>> list = comboMapper.getComboCount();
        return list;
    }
}
